/*
* Class: ChannelComponent::ItemComponent
* Description: Class is used to hold Cannel elements of RSS feeds. the Class is used by 
* RssFeed Objects and is needed to place clickable RSS feed titles in the
* rssFeedDisplayListModel in RssReaderFrame. Note the overfide of the toString
* method.
* 
* Note:
* Date: March 28, 2012
* Author: Shane Swayney
*/

package rssreaderapp;

/**
 * Class is used to hold channel elements of RSS feeds. the Class is used by 
 * RssFeed Objects and is needed to place clickable RSS feed titles in the
 * rssFeedDisplayListModel in RssReaderFrame. Note the overfide of the toString
 * method.
 * 
 * @author Shane Swayney <shane.swayney@gmail.com>
 */
public class ChannelComponent extends ItemComponent {

    /**
     * Constructor creates a new Channel Component
     * 
     * @param channelTitle the title of the Rss Feed Channel element
     * @param channelURL the url of the RSS feed channel element
     */
    public ChannelComponent(String channelTitle, String channelURL) {
        super(channelTitle,channelURL);
    }

    //Custom toString to be used by the rssFeedDispayListModel
    @Override
    public String toString() {
        return this.getItemTitle().toUpperCase();
    }
    
}
